package org.broadway.monitor;

import org.apache.commons.logging.Log;
import org.broadway.exceptions.ABroadException;

/**
 * Generalized exception type thrown for monitor errors.
 * @author vladimir
 *
 */
public class MonitorException extends ABroadException {
	private static final long serialVersionUID = -8500228625069498962L;
	
	/***
	 * Returns Monitor Exception.
	 * @param msg
	 */
	public MonitorException(String msg) {
		super(msg);
	}
	
	/***
	 * Returns a logged monitor exception.
	 * @param msg
	 * @param log
	 */
	public MonitorException(String msg, Log log) {
		super(msg,log);
	}
	
	/***
	 * Returns a monitor exception.
	 * @param ex
	 */
	public MonitorException(Throwable ex) {
		super(ex);
	}
	
	/***
	 * Returns a logged monitor exception.
	 * @param ex
	 * @param log
	 */
	public MonitorException(Throwable ex, Log log) {
		super(ex,log);
	}
	
	/***
	 * Returns a monitor exception.
	 * @param msg
	 * @param ex
	 */
	public MonitorException(String msg, Throwable ex) {
		super(msg, ex);
	}
	
	/***
	 * Returns a logged monitor exception.
	 * @param msg
	 * @param ex
	 * @param log
	 */
	public MonitorException(String msg, Throwable ex, Log log) {
		super(msg, ex);
	}
}
